package com.jungle.mvvm.sample.api;


import com.jungle.mvvm.sample.bean.ArticleBean;
import com.jungle.mvvm.sample.bean.KindBean;
import com.jungle.mvvm.sample.bean.ListBean;
import com.jungle.mvvm.sample.bean.SameBean;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Path;


/**
 * 详细说明
 *
 * @author Daniel
 * @version V1.0
 * @date 2020/12/24 16:31
 */
public interface ChapterApi {

    @GET("wxarticle/chapters/json")
    Observable<SameBean<List<KindBean>>> getChapterTree();

    @GET("wxarticle/list/{id}/{size}/json")
    Observable<ListBean<List<ArticleBean>>> getChapterArticle(@Path("size") int size, @Path("id") int id);
}
